/*
 * OnesaltException.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.web.common;

import com.onesalt.common.BaseException;
import com.onesalt.service.ServiceException;

/**
 * 网络异常
 *
 * @author kiri
 * @date 2015年3月6日
 * @version 1.0
 */
public class RestException extends BaseException {

	private static final long serialVersionUID = 6311662647797714288L;

	public RestException(String message) {
		super(message);
	}
	
	public RestException(int code, String message) {
		super(code, message);
	}
	
	public RestException(ServiceException exception) {
		super(exception.getCode(), exception.getMessage(), exception);
	}
}
